home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
filesyst
/
dosfs
/
dmsdosfs.000
/
dmsdosfs
/
dmsdosfs-0.6.9b
/
INSTALL_1.2
< prev
next >
Wrap
Text File
|
1996-06-17
|
3KB
|
62 lines
#!/bin/sh
# install script for dmsdosfs-0.6.6
#
# ONLY FOR LINUX KERNEL 1.2.xx
#
# *** READ DOCS BEFORE RUNNING THIS SCRIPT ***
#
# *** NEVER RUN THIS SCRIPT TWICE ***
#
if [ -e /usr/src/linux/fs/dmsdos ]; then
echo "dmsdos seems to be already installed - run UNINSTALL first"
exit
fi
# copy files to their destination directories...
cp -v umsdos_dmsdos.h /usr/src/linux/fs/umsdos
cp -v dmsdos_fs.h /usr/src/linux/include/linux
mkdir /usr/src/linux/fs/dmsdos
cp -v dmsdos*.c /usr/src/linux/fs/dmsdos
cp -v Makefile /usr/src/linux/fs/dmsdos
#cp -v charconv.inc /usr/src/linux/fs/msdos
# compile external dmsdos utility...
# does not work at this time... kernel must be configured before
# gcc -o /usr/bin/dutil dutil.c
# compile dpatch program...
gcc -o dpatch dpatch.c
# save old kernel sources in case somthing goes wrong...
cp -v /usr/src/linux/arch/i386/config.in /usr/src/linux/arch/i386/config.in.old
cp -v /usr/src/linux/fs/filesystems.c /usr/src/linux/fs/filesystems.c.old
cp -v /usr/src/linux/fs/Makefile /usr/src/linux/fs/Makefile.old
cp -v /usr/src/linux/fs/umsdos/dir.c /usr/src/linux/fs/umsdos/dir.c.old
cp -v /usr/src/linux/fs/umsdos/emd.c /usr/src/linux/fs/umsdos/emd.c.old
cp -v /usr/src/linux/fs/umsdos/file.c /usr/src/linux/fs/umsdos/file.c.old
cp -v /usr/src/linux/fs/umsdos/inode.c /usr/src/linux/fs/umsdos/inode.c.old
cp -v /usr/src/linux/fs/umsdos/ioctl.c /usr/src/linux/fs/umsdos/ioctl.c.old
cp -v /usr/src/linux/fs/umsdos/mangle.c /usr/src/linux/fs/umsdos/mangle.c.old
cp -v /usr/src/linux/fs/umsdos/namei.c /usr/src/linux/fs/umsdos/namei.c.old
cp -v /usr/src/linux/fs/umsdos/rdir.c /usr/src/linux/fs/umsdos/rdir.c.old
cp -v /usr/src/linux/fs/umsdos/symlink.c /usr/src/linux/fs/umsdos/symlink.c.old
#cp -v /usr/src/linux/fs/msdos/file.c /usr/src/linux/fs/msdos/file.c.old
#cp -v /usr/src/linux/fs/msdos/namei.c /usr/src/linux/fs/msdos/namei.c.old
# patch kernel sources for dmsdos...
./dpatch /usr/src/linux/arch/i386/config.in.old /usr/src/linux/arch/i386/config.in config.in.dpat
./dpatch /usr/src/linux/fs/filesystems.c.old /usr/src/linux/fs/filesystems.c filesystems.c.dpat
./dpatch /usr/src/linux/fs/Makefile.old /usr/src/linux/fs/Makefile Makefile.dpat
./dpatch /usr/src/linux/fs/umsdos/dir.c.old /usr/src/linux/fs/umsdos/dir.c dir.c.dpat
./dpatch /usr/src/linux/fs/umsdos/emd.c.old /usr/src/linux/fs/umsdos/emd.c emd.c.dpat
./dpatch /usr/src/linux/fs/umsdos/file.c.old /usr/src/linux/fs/umsdos/file.c allumsdos.c.dpat
./dpatch /usr/src/linux/fs/umsdos/inode.c.old /usr/src/linux/fs/umsdos/inode.c inode.c.dpat
./dpatch /usr/src/linux/fs/umsdos/ioctl.c.old /usr/src/linux/fs/umsdos/ioctl.c ioctl.c.dpat
./dpatch /usr/src/linux/fs/umsdos/mangle.c.old /usr/src/linux/fs/umsdos/mangle.c allumsdos.c.dpat
./dpatch /usr/src/linux/fs/umsdos/namei.c.old /usr/src/linux/fs/umsdos/namei.c allumsdos.c.dpat
./dpatch /usr/src/linux/fs/umsdos/rdir.c.old /usr/src/linux/fs/umsdos/rdir.c allumsdos.c.dpat
./dpatch /usr/src/linux/fs/umsdos/symlink.c.old /usr/src/linux/fs/umsdos/symlink.c allumsdos.c.dpat
#./dpatch /usr/src/linux/fs/msdos/file.c.old /usr/src/linux/fs/msdos/file.c msdos_file.c.dpat
#./dpatch /usr/src/linux/fs/msdos/namei.c.old /usr/src/linux/fs/msdos/namei.c msdos_namei.c.dpat